var Sequelize = require('sequelize');
var {sequelize} = require('../sequelize.js');

var user = sequelize.define('user',{
    id: {
        type: Sequelize.BIGINT(20),
        primaryKey: true,
        allowNull: false,
        unique: true,
        autoIncrement: true
    },
    username: Sequelize.STRING(255),
    password: Sequelize.STRING(255),
    firstname: Sequelize.STRING(255),
    lastname: Sequelize.STRING(255),
    email: Sequelize.STRING(255),
    isadmin: Sequelize.BIGINT(20),
},{
    timestamps: false,
    freezeTableName: true
});

module.exports = user;